<?php
namespace app\index\controller;
use think\Db;
class Index extends Base
{
    public function index()
    {   
        $data = [
            'slide' => Db::name('slide')->where('cat_id',1)->where('status',0)->order("sort desc,id desc")->select(),
            'nav1'  => Db::name('nav')->where('cat_id',1)->where('status',0)->order("sort desc,id desc")->select(),
            'goods' => Db::name('goods')->where('status',0)->order("sort desc,id desc")->limit(c('goods_page_size'))->select(),
        ];
        return view('', $data);
    }    
}   